home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / AIncludes / Graf3D.a < prev    next >
Encoding:
Text File  |  1993-11-30  |  3.3 KB  |  113 lines  |  [TEXT/MPS ]

  1. ;    File:        Graf3D.a
  2. ;
  3. ;    Copyright:    © 1983-1993 by Apple Computer, Inc.
  4. ;                All rights reserved.
  5. ;
  6. ;    Version:    System 7.1 for ETO #11
  7. ;    Created:    Tuesday, March 30, 1993 18:00
  8. ;
  9. ;___________________________________________________________________________
  10.  
  11.     IF &TYPE('__INCLUDINGGRAF3D__') = 'UNDEFINED' THEN
  12. __INCLUDINGGRAF3DEQU__    SET    1
  13.  
  14. ; Equates for Graf3D
  15. ; Three-dimensional graphics routines layered on top of QuickDraw
  16. FixRad            EQU         3754936                   ;radConst = 57.29578
  17. FracRad           EQU         1073741824
  18. ;offsets
  19. ;Point3D and Point2D
  20. x                 EQU         0                         ;Fixed
  21. y                 EQU         4                         ;Fixed
  22. z                 EQU         8                         ;Fixed
  23. ;XfMatrix = ARRAY[0..3,0..3] OF fixed
  24. xf00              EQU         0
  25. xf01              EQU         4
  26. xf02              EQU         8
  27. xf03              EQU         12
  28. xf10              EQU         16
  29. xf11              EQU         20
  30. xf12              EQU         24
  31. xf13              EQU         28
  32. xf20              EQU         32
  33. xf21              EQU         36
  34. xf22              EQU         40
  35. xf23              EQU         44
  36. xf30              EQU         48
  37. xf31              EQU         52
  38. xf32              EQU         56
  39. xf33              EQU         60
  40. ;Port3D
  41. GrPort            EQU         0                         ;GrafPtr
  42. viewRect          EQU         4                         ;Rect
  43. xLeft             EQU         12                        ;Fixed
  44. yTop              EQU         16                        ;Fixed
  45. xRight            EQU         20                        ;Fixed
  46. yBottom           EQU         24                        ;Fixed
  47. pen               EQU         28                        ;Point3D
  48. penPrime          EQU         40                        ;Point3D
  49. eye               EQU         52                        ;Point3D
  50. hSize             EQU         64                        ;Fixed
  51. vSize             EQU         68                        ;Fixed
  52. hCenter           EQU         72                        ;Fixed
  53. vCenter           EQU         76                        ;Fixed
  54. xCotan            EQU         80                        ;Fixed
  55. yCotan            EQU         84                        ;Fixed
  56. ident             EQU         88                        ;BOOLEAN
  57. xForm             EQU         90                        ;XfMatrix
  58. szPort3D          EQU         154                       ;size of Port3D
  59.  
  60. ;PROCEDURE InitGrf3D (globalPtr: Ptr);
  61.          IMPORT   InitGrf3D
  62. ;PROCEDURE Open3DPort (port: Port3DPtr);
  63.          IMPORT   Open3DPort
  64. ;PROCEDURE SetPort3D (port: Port3DPtr);
  65.          IMPORT   SetPort3D
  66. ;PROCEDURE GetPort3D (VAR port: Port3DPtr);
  67.          IMPORT   GetPort3D
  68. ;PROCEDURE MoveTo2D (x,y: Fixed);
  69.          IMPORT   MoveTo2D
  70. ;PROCEDURE MoveTo3D (x,y,z: Fixed);
  71.          IMPORT   MoveTo3D
  72. ;PROCEDURE LineTo2D (x,y: Fixed);
  73.          IMPORT   LineTo2D
  74. ;PROCEDURE LineTo3D (x,y,z: Fixed);
  75.          IMPORT   LineTo3D
  76. ;PROCEDURE Move2D (dx,dy: Fixed);
  77.          IMPORT   Move2D
  78. ;PROCEDURE Move3D (dx,dy,dz: Fixed);
  79.          IMPORT   Move3D
  80. ;PROCEDURE Line2D (dx,dy: Fixed);
  81.          IMPORT   Line2D
  82. ;PROCEDURE Line3D (dx,dy,dz: Fixed);
  83.          IMPORT   Line3D
  84. ;PROCEDURE ViewPort (r: Rect);
  85.          IMPORT   ViewPort
  86. ;PROCEDURE LookAt (left,top,right,bottom: Fixed);
  87.          IMPORT   LookAt
  88. ;PROCEDURE ViewAngle (angle: Fixed);
  89.          IMPORT   ViewAngle
  90. ;PROCEDURE Identity;
  91.          IMPORT   Identity
  92. ;PROCEDURE Scale (xFactor,yFactor,zFactor: Fixed);
  93.          IMPORT   Scale
  94. ;PROCEDURE Translate (dx,dy,dz: Fixed);
  95.          IMPORT   Translate
  96. ;PROCEDURE Pitch (xAngle: Fixed);
  97.          IMPORT   Pitch
  98. ;PROCEDURE Yaw (yAngle: Fixed);
  99.          IMPORT   Yaw
  100. ;PROCEDURE Roll (zAngle: Fixed);
  101.          IMPORT   Roll
  102. ;PROCEDURE Skew (zAngle: Fixed);
  103.          IMPORT   Skew
  104. ;PROCEDURE TransForm (src: Point3D; VAR dst: Point3D);
  105.          IMPORT   TransForm
  106. ;FUNCTION Clip3D (src1,src2: Point3D; VAR dst1,dst2: POINT): BOOLEAN;
  107.          IMPORT   Clip3D
  108. ;PROCEDURE SetPt3D (VAR pt3D: Point3D; x,y,z: fixed);
  109.          IMPORT   SetPt3D
  110. ;PROCEDURE SetPt2D (VAR pt2D: Point2D; x,y: fixed);
  111.            IMPORT   SetPt2D
  112.  
  113.     ENDIF    ; ...already included